package org.topdowntdd.sample.appfusemodularstruts.webapp.action.person;

import org.junit.After;
import org.topdowntdd.sample.appfusemodularstruts.manager.PersonManager;
import org.topdowntdd.sample.appfusemodularstruts.webapp.action.BaseMockActionTestCase;

public abstract class BaseActionTestCase extends BaseMockActionTestCase {

	protected PersonManager personManager;

	public BaseActionTestCase() {
		super();
	}

	public BaseActionTestCase(String name) {
		super(name);
	}

	@Override
	protected void setUpDependencies() {
		personManager = context.mock(PersonManager.class);
	}

	@Override
	protected abstract void setUpAction();

	@Override
	@After
	protected void tearDown() throws Exception {
		
		personManager = null;
		
		super.tearDown();
	}

}